package shop.up.user.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import shop.up.model.user.UserAddress;
import shop.up.user.client.impl.UserDegradeFeignClient;

import java.util.List;

/**
 * @author zhh
 * @date 2023/4/14 22:49
 */
@FeignClient(value = "service-user", fallback = UserDegradeFeignClient.class)
public interface UserFeignClient {

    @GetMapping("/api/user/inner/findUserAddressListByUserId/{userId}")
    List<UserAddress> findUserAddressListByUserId(@PathVariable(value = "userId") String userId);
}
